package com.example.demo.service;

import com.example.demo.pojo.Catrgoryicon;
import com.example.demo.pojo.Goodsaddguanli;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author yanglup
 * @create 2020-12-05 21:18
 */
public interface BookService {
    /**查询图书列表*/
    PageInfo<Goodsaddguanli> Booklist(Integer pageNo, Integer pageSize);
//    List<Goodsaddguanli> Booklist();
    /**查询图书列表数*/
    Integer Booklistnumber();

    /**添加图书*/
    void Bookaddtijiao(Integer cat_id, String goods_name, Integer goods_price, Integer goods_number, String school, String goods_oldnew, String goods_described,
                       String goods_small_logo, String goods_small_logo2, String goods_small_logo3, Integer cat_one_id, Integer cat_two_id, String goods_serial, String openid, Integer status);

    /**修改1 查看*/
    Goodsaddguanli Bookupdate(Integer goods_id);
    /**修改2  更新*/
    void Bookupdatetijiao(Integer goods_idchuanru, Integer goods_id, Integer cat_id, String goods_name, Integer goods_price, Integer goods_number, String school, String goods_oldnew, String goods_described,
                          String goods_small_logo, String goods_small_logo2, String goods_small_logo3, Integer cat_one_id, Integer cat_two_id, String openid, Integer status);

    /**删除图书*/
    void Bookdelete(Integer goods_id);

    /**搜索图书*/
    List<Goodsaddguanli> Booksearch(String goods_name);
    /**搜索图书的数量*/
    Integer Booksearchnumber(String goods_name);

}
